package camel.corp.universalcopy.b;

import a.c.a.b;
import android.animation.ValueAnimator;
import android.content.Context;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatButton;
import com.camel.corp.universalcopy.b.a;
import com.camel.corp.universalcopy.b.b;
import com.camel.corp.universalcopy.b.c;
import com.camel.corp.universalcopy.b.d;
import com.camel.corp.universalcopy.b.e;
import com.camel.corp.universalcopy.b.f;

public class f extends b {
  private LinearLayout j;
  
  private ImageView k;
  
  private AppCompatButton l;
  
  private int m;
  
  private int n;
  
  private int o;
  
  private boolean p;
  
  private boolean q;
  
  private int r;
  
  public f(a parama, int paramInt1, int paramInt2, int paramInt3) {
    super(context);
    this.m = paramInt1;
    this.n = paramInt2;
    this.o = paramInt3;
    this.p = false;
    this.r = 0;
    this.q = false;
    a(context);
  }
  
  private void a(Context paramContext) {
    ((LayoutInflater)paramContext.getSystemService("layout_inflater")).inflate(2131492912, this);
    onFinishInflate();
  }
  
  private void d() {
    ValueAnimator valueAnimator = ValueAnimator.ofInt(new int[] { 0, this.r });
    valueAnimator.addUpdateListener(new b(this));
    valueAnimator.addListener(new c(this));
    valueAnimator.setDuration(300L);
    valueAnimator.start();
  }
  
  private void e() {
    ValueAnimator valueAnimator = ValueAnimator.ofInt(new int[] { this.r, 0 });
    valueAnimator.addUpdateListener(new d(this));
    valueAnimator.setDuration(300L);
    valueAnimator.start();
  }
  
  public void a(int paramInt, View.OnClickListener paramOnClickListener) {
    this.p = true;
    this.l.setText(paramInt);
    this.l.setVisibility(0);
    this.l.setOnClickListener(paramOnClickListener);
  }
  
  public void a(boolean paramBoolean1, boolean paramBoolean2) {
    if (paramBoolean2)
      if (paramBoolean1) {
        d();
      } else {
        e();
      }  
    if (paramBoolean1 && paramBoolean2)
      ((a)getContext()).a(this); 
    this.q = paramBoolean1;
  }
  
  public boolean c() { return this.q; }
  
  public int getId() { return this.o; }
  
  protected void onFinishInflate() {
    super.onFinishInflate();
    TextView textView = (TextView)findViewById(2131296360);
    textView.setText(this.n);
    textView.setMovementMethod(LinkMovementMethod.getInstance());
    this.j = (LinearLayout)findViewById(2131296361);
    this.k = (ImageView)findViewById(2131296544);
    this.l = (AppCompatButton)findViewById(2131296332);
    ((TextView)findViewById(2131296540)).setText(this.m);
    findViewById(2131296542).setOnClickListener(new e(this));
  }
  
  protected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
    super.onLayout(paramBoolean, paramInt1, paramInt2, paramInt3, paramInt4);
    if (this.r <= 0) {
      paramInt2 = this.j.getHeight();
      if (this.p) {
        paramInt1 = 0;
      } else {
        paramInt1 = this.l.getHeight();
      } 
      this.r = paramInt2 - paramInt1;
      post(new a(this));
    } 
  }
}


/* Location:              D:\Users\alienware\AndroidStudioProjects\Lazero\sample\sampler\classes-dex2jar\com\camel.jar!\camel\cor\\universalcopy\b\f.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.0.7
 */